package leetcode.code713;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution713 implements IDebug {
	public abstract int numSubarrayProductLessThanK(int[] nums, int k);

	@Override
	public void debug1() {
//		输入: nums = [10,5,2,6], k = 100
//	    输出: 8
		String numstr = "[10,5,2,6]";
		int k = 100;
		int expect = 8;
		this.debug(numstr,k,expect);
	}

	private void debug(String numstr, int k, int expect) {
		int[] nums = HelpDebug.str2array3(numstr);
		int result = this.numSubarrayProductLessThanK(nums, k);
		HelpDebug.compare(expect, result);
	}

	@Override
	public void debug2() {
//		输入: nums = [1,2,3], k = 0
//	    输出: 0
		String numstr = "[1,2,3]";
		int k = 0;
		int expect = 0;
		this.debug(numstr,k,expect);
	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
